/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vng.zing.zprofile.thrift.wrapper;

/**
 *
 * @author namhh
 */
public class ZProfileClientInstance {

    private static ZProfileClientInstance INSTANCE;

    private final ZProfileClient client;

    private final ZProfileClientWithCache clientWithCache;

    private ZProfileClientInstance() {
        client = new ZProfileClient("zprofilemiddleware");
        clientWithCache = new ZProfileClientWithCache("zprofilemiddleware");
    }

    public  static synchronized ZProfileClientInstance getInstance() {
        return (INSTANCE == null)? INSTANCE = new ZProfileClientInstance():INSTANCE;
    }
    
    public  ZProfileClient getClient(){
        return client;
    }
    
     public ZProfileClientWithCache getClientWithCache(){
        return clientWithCache;
    }
    

}
